
#idl文件名字
set(IDL_NAME Messenger)
set(GENERATED_DIR  ${CMAKE_CURRENT_SOURCE_DIR}/out_stub)

# Configure IDL compilation
configure_corba_idl(${IDL_NAME} ${GENERATED_DIR})

#单台机器通信
add_executable(messenger_server MessengerServer.cpp  MessengerI_.cpp MessengerI_.h ${IDL_GENERATED_FILES_S})
target_include_directories(messenger_server PUBLIC ${GENERATED_DIR})

add_executable(messenger_client MessengerClient.cpp ${IDL_GENERATED_FILES_C})
target_include_directories(messenger_client PUBLIC ${GENERATED_DIR})